package com.hdoit.ares.web.claim.modelconfig;

import com.hdoit.ares.web.claim.providers.ApplyforTypeProvider;
import com.hdoit.ares.web.claim.providers.TrackTypeProvider;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class ClaimApplyforSearchConfig extends ModelMetadataAttributeConfiguration{
	public ClaimApplyforSearchConfig(){
		 this.setProperty("startDate")
	        .hasAttribute(new DisplayNameAttribute("起始时间"));
	        
	        this.setProperty("endDate")
	        .hasAttribute(new DisplayNameAttribute("终止时间"));
	        
	        this.setProperty("productName")
	        .hasAttribute(new DisplayNameAttribute("产品"));
	        
	        this.setProperty("applyforName")
	        .hasAttribute(new DisplayNameAttribute("申请人"));
	        
	        this.setProperty("trackName")
	        .hasAttribute(new DisplayNameAttribute("跟踪人"));
	        
	        this.setProperty("checkType")
	        .hasAttribute(new DisplayNameAttribute("申请状态状态"))
	        .hasAttribute(new DropDownListAttribute(new ApplyforTypeProvider("senior")));
	        
	        this.setProperty("trackType")
	        .hasAttribute(new DisplayNameAttribute("跟踪状态"))
	        .hasAttribute(new DropDownListAttribute(new TrackTypeProvider("senior")));
	}
}
